<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:70:"D:\phpStudy\WWW\mangmeshi/./application/admin\view\life\see_three.html";i:1531050435;}*/ ?>

    <form class="form-horizontal bv-form"  role="form" id="updateForm" enctype ="multipart/form-data">
        <input type="hidden" name="fid" value="<?php echo $data['life_id']; ?>">
        <fieldset>
            <legend>基本信息</legend>
            <div class="form-group">
                <label class="col-sm-3 control-label">发布人</label>
                <div class="col-sm-6">
                    <input type="text" name="title" class="form-control"  value="<?php echo $data['user_username']; ?>">
                </div>
            </div><div class="form-group">
                <label class="col-sm-3 control-label">标题</label>
                <div class="col-sm-6">
                    <input type="text" name="title" class="form-control"  value="<?php echo $data['life_title']; ?>">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">类型</label>
                <div class="col-sm-6">
                    <?php if($data['life_new_type']==1): ?><input type="text" name="title" class="form-control"  value="新农村"><?php endif; if($data['life_new_type']==2): ?><input type="text" name="title" class="form-control"  value="大学生"><?php endif; if($data['life_new_type']==3): ?><input type="text" name="title" class="form-control"  value="二手货"><?php endif; ?>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">发布城市</label>
                <div class="col-sm-6">
                    <input type="text" name="title" class="form-control"  value="<?php echo $data['sheng']; ?><?php echo $data['shi']; ?><?php echo $data['qu']; ?>">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">详细地址</label>
                <div class="col-sm-6">
                    <input type="text" name="title" class="form-control"  value="<?php echo $data['life_address']; ?>">
                </div>
            </div>
            <!-- TODO 价格未定，联系电话未定-->
            <!--<div class="form-group">-->
                <!--<label class="col-sm-3 control-label">价格</label>-->
                <!--<div class="col-sm-6">-->
                    <!--<input type="text" name="title" class="form-control"  value="<?php echo $data['life_price']; ?>">-->
                <!--</div>-->
            <!--</div>-->
            <div class="form-group">
                <label class="col-sm-3 control-label">图片</label>
                <div class="col-sm-6">
                    <?php if(!$data['life_image']): ?>暂无图片<?php endif; ?>
                </div>
            </div>
            <?php if($data['life_image']): ?>
            <div style="width: 100%;">
                <?php if(is_array($img) || $img instanceof \think\Collection): $i = 0; $__LIST__ = $img;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$im): $mod = ($i % 2 );++$i;?>
                <img src="<?php echo $im; ?>" alt="" style="width: 30%;height: auto;margin-left: 2%;margin-bottom: 10px;"/>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </div>
            <?php endif; ?>

            <div class="form-group">
                <label class="col-sm-3 control-label">内容</label>
                <div class="col-sm-6">
                    <textarea name="con" rows="10" class="form-control"><?php echo $data['life_content']; ?></textarea>
                </div>
            </div>
            <?php if($data['life_url']): ?>
            <div class="form-group">
                <label class="col-sm-3 control-label">视频</label>
                <div class="col-sm-6">
                    <video src="<?php echo $data['life_url']; ?>" controls="controls" width="100%"></video>
                </div>
            </div>
            <?php endif; ?>

        </fieldset>
    </form>
    <script>
        $('input,textarea').attr('disabled','disabled');
    </script>